package com.travel.JPA;

import com.travel.Bean.User_up;
import org.bytedeco.opencv.presets.opencv_core;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface User_upJPA extends JpaRepository<User_up,Integer> {

    @Query("select count(u) from user_up u where u.user_id = ?1 and u.strateqy_id = ?2")
    Integer findUidSidYN(String userId,Integer strategyId);

    @Query("select u.strateqy_id from user_up  u where u.user_id = ?1")
    List<Integer> findByUserid(String userId);
}
